{minimum_otp_vsn, "21.3"}.

{plugins, [rebar3_proper]}.

{deps,
    [  {emqx, {git, "https://hub.fastgit.org/fastdgiot/emqx", {tag, "v4.3.1"}}}
    ]}.

{erl_opts, [warn_unused_vars,
    warn_shadow_vars,
    warn_unused_import,
    warn_obsolete_guard,
    debug_info,
    compressed %% for edge
]}.

{overrides, [{add, [{erl_opts, [compressed]}]}]}.

{edoc_opts, [{preprocess, true}]}.

{xref_checks, [undefined_function_calls, undefined_functions,
    locals_not_used, deprecated_function_calls,
    warnings_as_errors, deprecated_functions
]}.

{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_export_enabled, true}.

{erl_first_files, ["src/dgiot_logger.erl"]}.

{profiles,
    [{test,
        [{plugins, [{coveralls, {git, "https://hub.fastgit.org/fastdgiot/coveralls-erl", {branch, "github"}}}]},
            {deps,
                [{bbmustache, "1.7.0"},
                    {emqtt, {git, "https://hub.fastgit.org/fastdgiot/emqtt", {tag, "1.2.0"}}},
                    {dgiot_ct_helpers, {git, "https://hub.fastgit.org/fastdgiot/emqx-ct-helpers", {tag, "1.3.0"}}}
                ]},
            {erl_opts, [debug_info]}
        ]}
    ]}.

